package com.itheima.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 配置类 - 配置拦截器
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

    //    @Autowired
    //    private TokenInterceptor tokenInterceptor;
    //
    //    @Override
    //    public void addInterceptors(InterceptorRegistry registry) { //注册拦截器
    //        registry.addInterceptor(tokenInterceptor).addPathPatterns("/**");//.excludePathPatterns("/login");
    //    }

}
